import { useResponseSuccess } from '~/utils/response';

export default eventHandler(() => {
  // 模拟服务窗口数据
  const windows = [
    {
      id: 'window_1',
      name: '温泉窗口1',
      status: 'serving', // idle, serving, busy
      currentCustomer: {
        ticketNumber: 'A001',
        customerName: '张三',
        startTime: '14:00',
      },
    },
    {
      id: 'window_2',
      name: '温泉窗口2',
      status: 'idle',
    },
    {
      id: 'window_3',
      name: '按摩窗口1',
      status: 'serving',
      currentCustomer: {
        ticketNumber: 'A002',
        customerName: '李四',
        startTime: '14:30',
      },
    },
    {
      id: 'window_4',
      name: 'SPA窗口1',
      status: 'busy',
    },
    {
      id: 'window_5',
      name: '酒店前台1',
      status: 'serving',
      currentCustomer: {
        ticketNumber: 'B001',
        customerName: '王五',
        startTime: '15:00',
      },
    },
    {
      id: 'window_6',
      name: '餐厅前台1',
      status: 'idle',
    },
  ];

  return useResponseSuccess(windows);
});
